//让ai前往一个点

params ["_group", "_pos", ["_speed", 1.5]];
_speed = _speed * 5;

_group setBehaviour "AWARE";
_group setSpeedMode "FULL";


private _leader = leader _group;
(units _group) doMove _pos;

private _posPre = position _leader;

while{_leader distance2D _pos > 1.5} do{
	uiSleep 5;
	if(_posPre distance2D _leader < 0.5)then{
		_leader setPos (_leader getPos [_speed, _leader getDir _pos]);
	};
	_posPre = position _leader;
	_leader = leader _group;
};